#coding=utf-8
from django.shortcuts import render
from blog.models import BlogsPost
from blog.models import FriendLink
from django.shortcuts import render_to_response

# Create your views here.
def index(request):
    blog_list = BlogsPost.objects.all()
    link_list = FriendLink.objects.all()
    data = {
        'blog_list': blog_list,
        'link_list': link_list
    }
    return render_to_response('index.html', data)